/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Gui;

import Gui.FrmAdministradores;
import Gui.FrmCadastro1;
import Gui.FrmFuncionarios;
import Gui.FrmMedicamentos;
import Gui.FrmRelatórios;

/**
 *
 * @author Monique
 */
public class FrmMenu extends javax.swing.JFrame {

    /**
     * Creates new form FrmMenu
     */
    public FrmMenu() {
           super("Farmácia Menu");
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem3 = new javax.swing.JMenuItem();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        MnuCadastro = new javax.swing.JMenu();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        MnuCadastro_Cliente = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        MnuFuncionarios = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        MnuMedicamentos = new javax.swing.JMenuItem();
        MnuConsultas = new javax.swing.JMenu();
        jSeparator8 = new javax.swing.JPopupMenu.Separator();
        MnuConsultasCadastro = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        MnuConcultasMedicamentos = new javax.swing.JMenuItem();
        jSeparator9 = new javax.swing.JPopupMenu.Separator();
        MnuRelatorios = new javax.swing.JMenuItem();
        jSeparator5 = new javax.swing.JPopupMenu.Separator();
        MnuConsultaPDV = new javax.swing.JMenuItem();
        MnuVendas = new javax.swing.JMenu();
        MnuProdutosvendas = new javax.swing.JMenuItem();
        MnuInformacoes = new javax.swing.JMenu();
        MnuAdministradores = new javax.swing.JMenuItem();
        MnuSair = new javax.swing.JMenu();
        MnuSair1 = new javax.swing.JMenuItem();

        jMenuItem3.setText("jMenuItem3");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(204, 0, 0));
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setMaximumSize(new java.awt.Dimension(12500, 125000));
        getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 6, -1, -1));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Gui/MENU_PRONTO.png"))); // NOI18N
        getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 680, 490));

        MnuCadastro.setText("Cadastro");
        MnuCadastro.add(jSeparator1);

        MnuCadastro_Cliente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));
        MnuCadastro_Cliente.setText("Cadastro Cliente");
        MnuCadastro_Cliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuCadastro_ClienteActionPerformed(evt);
            }
        });
        MnuCadastro.add(MnuCadastro_Cliente);
        MnuCadastro.add(jSeparator2);

        MnuFuncionarios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, 0));
        MnuFuncionarios.setText("Cadastro Funcionário");
        MnuFuncionarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuFuncionariosActionPerformed(evt);
            }
        });
        MnuCadastro.add(MnuFuncionarios);
        MnuCadastro.add(jSeparator3);

        MnuMedicamentos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0));
        MnuMedicamentos.setText("Cadastro Medicamentos");
        MnuMedicamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuMedicamentosActionPerformed(evt);
            }
        });
        MnuCadastro.add(MnuMedicamentos);

        jMenuBar1.add(MnuCadastro);

        MnuConsultas.setText("Consultas");
        MnuConsultas.add(jSeparator8);

        MnuConsultasCadastro.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, 0));
        MnuConsultasCadastro.setText("Consulta Cadastro");
        MnuConsultasCadastro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuConsultasCadastroActionPerformed(evt);
            }
        });
        MnuConsultas.add(MnuConsultasCadastro);
        MnuConsultas.add(jSeparator4);

        MnuConcultasMedicamentos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, 0));
        MnuConcultasMedicamentos.setText("Consulta medicamentos");
        MnuConcultasMedicamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuConcultasMedicamentosActionPerformed(evt);
            }
        });
        MnuConsultas.add(MnuConcultasMedicamentos);
        MnuConsultas.add(jSeparator9);

        MnuRelatorios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, 0));
        MnuRelatorios.setText("Relatórios");
        MnuRelatorios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuRelatoriosActionPerformed(evt);
            }
        });
        MnuConsultas.add(MnuRelatorios);
        MnuConsultas.add(jSeparator5);

        MnuConsultaPDV.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F9, 0));
        MnuConsultaPDV.setText("Consulta PDV");
        MnuConsultaPDV.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuConsultaPDVActionPerformed(evt);
            }
        });
        MnuConsultas.add(MnuConsultaPDV);

        jMenuBar1.add(MnuConsultas);

        MnuVendas.setText("Vendas");

        MnuProdutosvendas.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F7, 0));
        MnuProdutosvendas.setText("Produtos de Vendas");
        MnuProdutosvendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuProdutosvendasActionPerformed(evt);
            }
        });
        MnuVendas.add(MnuProdutosvendas);

        jMenuBar1.add(MnuVendas);

        MnuInformacoes.setText("Informações do Sistemas");

        MnuAdministradores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F8, 0));
        MnuAdministradores.setText("Administração");
        MnuAdministradores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuAdministradoresActionPerformed(evt);
            }
        });
        MnuInformacoes.add(MnuAdministradores);

        jMenuBar1.add(MnuInformacoes);

        MnuSair.setText("Sair");
        MnuSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuSairActionPerformed(evt);
            }
        });

        MnuSair1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        MnuSair1.setText("Sair");
        MnuSair1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MnuSair1ActionPerformed(evt);
            }
        });
        MnuSair.add(MnuSair1);

        jMenuBar1.add(MnuSair);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void MnuCadastro_ClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuCadastro_ClienteActionPerformed
        // TODO add your handling code here:
        FrmCadastro frmCad = new FrmCadastro();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
       
        
        
    }//GEN-LAST:event_MnuCadastro_ClienteActionPerformed

    private void MnuMedicamentosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuMedicamentosActionPerformed
        // TODO add your handling code here:
         FrmCadastro_Remedio frmCad = new FrmCadastro_Remedio();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_MnuMedicamentosActionPerformed

    private void MnuFuncionariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuFuncionariosActionPerformed
        // TODO add your handling code here:
         FrmFuncionarios frmCad = new FrmFuncionarios();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_MnuFuncionariosActionPerformed

    private void MnuSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuSairActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_MnuSairActionPerformed

    private void MnuSair1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuSair1ActionPerformed
        // TODO add your handling code here:
        this.dispose();
        
    }//GEN-LAST:event_MnuSair1ActionPerformed

    private void MnuAdministradoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuAdministradoresActionPerformed
        // TODO add your handling code here:
         FrmAdministradores frmCad = new FrmAdministradores();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_MnuAdministradoresActionPerformed

    private void MnuRelatoriosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuRelatoriosActionPerformed
        // TODO add your handling code here:
         FrmRelatórios frmCad = new FrmRelatórios();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_MnuRelatoriosActionPerformed

    private void MnuConsultasCadastroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuConsultasCadastroActionPerformed
        // TODO add your handling code here:
        FrmCadastro1 frmCad = new FrmCadastro1();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
       
    }//GEN-LAST:event_MnuConsultasCadastroActionPerformed

    private void MnuConcultasMedicamentosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuConcultasMedicamentosActionPerformed
        // TODO add your handling code here:
        FrmMedicamentos frmCad = new FrmMedicamentos();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_MnuConcultasMedicamentosActionPerformed

    private void MnuProdutosvendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuProdutosvendasActionPerformed
        // TODO add your handling code here:
        FrmPdv frmCad = new FrmPdv();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_MnuProdutosvendasActionPerformed

    private void MnuConsultaPDVActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MnuConsultaPDVActionPerformed
        // TODO add your handling code here:
            FrmBuscaPdv frmCad = new FrmBuscaPdv();
        frmCad.setDefaultCloseOperation(HIDE_ON_CLOSE);
        frmCad.setVisible(true);
    }//GEN-LAST:event_MnuConsultaPDVActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrmMenu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem MnuAdministradores;
    private javax.swing.JMenu MnuCadastro;
    private javax.swing.JMenuItem MnuCadastro_Cliente;
    private javax.swing.JMenuItem MnuConcultasMedicamentos;
    private javax.swing.JMenuItem MnuConsultaPDV;
    private javax.swing.JMenu MnuConsultas;
    private javax.swing.JMenuItem MnuConsultasCadastro;
    private javax.swing.JMenuItem MnuFuncionarios;
    private javax.swing.JMenu MnuInformacoes;
    private javax.swing.JMenuItem MnuMedicamentos;
    private javax.swing.JMenuItem MnuProdutosvendas;
    private javax.swing.JMenuItem MnuRelatorios;
    private javax.swing.JMenu MnuSair;
    private javax.swing.JMenuItem MnuSair1;
    private javax.swing.JMenu MnuVendas;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JPopupMenu.Separator jSeparator5;
    private javax.swing.JPopupMenu.Separator jSeparator8;
    private javax.swing.JPopupMenu.Separator jSeparator9;
    // End of variables declaration//GEN-END:variables
}
